package cn.vc.shop.entity.po;

import cn.vc.basicmodule.entity.Entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.sql.Timestamp;

/**
 * <h1>购物车</h1>
 */
@Data
public class ShoppingCart {
    @TableId(type = IdType.AUTO)
    private Long id = null;//数据库自增ID
    private Long userId;//用户ID1
    private Long commodityId;//商品ID
    private Integer num;//商品数量
    private Timestamp setTime = new Timestamp(System.currentTimeMillis());//创建时间
    @TableLogic(value = "0"/*存在*/, delval = "1"/*删除*/)
    private Integer deleted = 0;//删除字段
}
